package bean

type JobBeans struct {
	TGroup   string `yaml:"tGroup"`
	Url      string `yaml:"url"`
	Param    string `yaml:"param"`
	TCode    string `yaml:"tCode"`
	IsOpen   bool   `yaml:"isOpen"`
	TaskTime string `yaml:"taskTime"`
	TaskType string `yaml:"taskType"`
	Desc     string
}

type TaskBean struct {
	JobBeans []JobBeans `yaml:"jobBeans"`
	Test     string     `yaml:"test"`
}

type ContentNacos struct {
	TaskBean TaskBean `yaml:"taskBean"`
	Test     string   `yaml:"test"`
}
type Callback func(JobBeans)
type RunCallback struct {
	OnEvent  Callback
	JobBeans JobBeans
}

func (g RunCallback) Run() {
	//log.Println(g.Url,g.Param)
	g.OnEvent(g.JobBeans)
}
